/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.order;
import com.xingkeduo.utils.PageResponseDTO;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ContentOrder {

    private Object unpaid_order_record;
    private List<Order_list> order_list;
    private Long limit;
    private Long count;

    public void covert(List<Order_list> order_lists, PageResponseDTO<OrderUserResponseDto> responseUtils,UnpaidOrderRecord unpaidOrderRecord) {
        if(unpaidOrderRecord!=null){
            this.unpaid_order_record = unpaidOrderRecord;
        }else{
            this.unpaid_order_record = new ArrayList<>();
        }

        this.order_list = order_lists;
        this.limit = 5L;
        this.count = responseUtils.getRecordTotal();
    }
}